home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 July / CMCD0704.ISO / Software / Shareware / Comunicatii / jaeger / jaeger.exe / {app} / Tools / ToolWaypathPostAnalysis.py < prev   
Text File  |  2004-03-27  |  652b  |  33 lines

  1. #!/bin/python
  2.  
  3. """
  4. ToolWaypathPostAnalysis.py
  5.  
  6. David Janes
  7. BlogMatrix
  8. 2004.02.12
  9. """
  10.  
  11. import sys
  12. import urllib
  13. import Tool
  14.  
  15. class ToolWaypathPostAnalysis(Tool.ToolInterface):
  16.     """
  17.     The interface for your tool. Simply create an instance of this object and Jaeger
  18.     will figure it out.
  19.     """
  20.     def __init__(self):
  21.         Tool.ToolInterface.__init__(self)
  22.         
  23.     def get_label(self, selected):
  24.         return    "Waypath Post Analysis"
  25.         
  26.     def invoke(self, selected, operations):
  27.         operations.open_url("http://www.waypath.com/query?type=url&key=" + \
  28.             urllib.quote(selected.url))
  29. #
  30. # creating it will register it
  31. #
  32. ToolWaypathPostAnalysis()
  33.